package com.example.text.dao;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.text.entity.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 用户表
 *
 * @author hjj
 * @email 1041914134@qq.com
 * @date 2020-06-23 16:02:15
 */
@Mapper
public interface UserDao extends BaseMapper<User> {

    //简单登录
    User getInfo(String username, String password);

    //根据用户名称查询用户
    User getByUserName(String username);

    //查询所有数据,
    List<User> findAll();

    //查询所有数据,按照降序
    IPage<User> selectPageVo(Page<User> page);


}


